<!--change to divs (like a proper web page --> 
<% form_for :edit, :url => {:action => :save_submission}, :html => {:multipart=> true} do |form| %>
  <table>
    <tr>
      <td>Team:</td>
      <td><%= Team.find(@submission.team_id).name %></td>
    </tr>

    <tr>
      <td>Problem:</td>
      <td><%= @submission.name %></td>
    </tr>

    <tr>
      <td>Status:</td>
      <td><%= form.select("submission_status", ["FAILED", "UNKOWN LANGUAGE", "INCORRECT OUTPUT", "FAILED TO COMPILE", "SUCCESSFUL SUBMISSION"], {:selected => @submission.status}) %></td>
    </tr>
  </table>

  <p>Submitted:</p>
    <pre>
<%= @submission.file.gsub("<", "&lt;").gsub(">", "&gt;") %>
    </pre>
  <hr />

  <%= form.hidden_field(:id, {:value =>@submission.id}) %>

  <%= submit_tag "Save"  %>
<%end%>
